package com.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.bean.Code;
import com.dao.CodeDao;
import com.service.CodeService;
@Component("codeService")
public class CodeServiceImpl implements CodeService{

	@Autowired
	private CodeDao codeDao;

	@Override
	public Map<String, Object> insert(Code code) {
		return codeDao.insert(code);
	}
	@Override
	public int selectCodeMin(String mobile,String types){
		return codeDao.selectCodeMin(mobile, types);
	}
	
}
